<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/11/2
  Time: 21:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="${pageContext.request.contextPath}/assets/images/favicon.png" type="image/png">
    <title>用户添加</title>

    <!--Begin  Page Level  CSS -->
    <link href="${pageContext.request.contextPath}/assets/plugins/morris-chart/morris.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/assets/plugins/jquery-ui/jquery-ui.min.css" rel="stylesheet"/>
    <!--End  Page Level  CSS -->
    <link href="${pageContext.request.contextPath}/assets/css/icons.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/assets/css/bootstrap.min.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/assets/css/style.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/assets/css/responsive.css" rel="stylesheet">
    <style>
        .form-horizontal .one {
            margin-top: 30px;
            margin-left: 25px;
        }

        .form-horizontal .two {
            margin-top: 15px;
            margin-left: 25px;
        }
        .form-horizontal .status {
            margin-top: 15px;
            margin-left: 182px;
        }
        .form-horizontal .status input {
            margin-top: 15px;
            margin-left: 22px;
        }

        .big-box {
            padding: 10px;
            background-color: white;
            width: 100%;
        }

        .main-content {

        }
    </style>
</head>
<body class="sticky-header">

<jsp:include page="../inc/left.jsp"/>

<div class="main-content">
    <jsp:include page="../inc/header.jsp"/>

    <!--body wrapper start-->
    <div class="wrapper">

        <!--Start Page Title-->
        <div class="page-title-box">
            <h4 class="page-title" style="text-indent: 1em">编辑用户</h4>
            <ol class="breadcrumb">
                <li>
                    <a href="${pageContext.request.contextPath}/index">首页</a>
                </li>
                <li>
                    <a href="${pageContext.request.contextPath}/permissions/admin">权限</a>
                </li>
                <li class="active">
                    编辑用户
                </li>
            </ol>
            <div class="clearfix"></div>
        </div>
        <div class="big-box">
            <form class="form-horizontal" method="post">
<%--                <div class="name" style="margin: 20px auto">编辑用户</div>--%>
                <div class="form-group one">
                    <label for="inputAccount" class="col-sm-2 control-label">账号</label>
                    <div class="col-sm-7">
                        <input type="text" class="form-control" name="username" id="inputAccount" value="${admin.username}">
                    </div>
                </div>
                <div class="form-group two">
                    <label for="inputName" class="col-sm-2 control-label">姓名</label>
                    <div class="col-sm-7">
                        <input type="text" class="form-control" name="nickName" id="inputName" value="${admin.nickName}">
                    </div>
                </div>
                <div class="form-group two">
                    <label for="inputEmail" class="col-sm-2 control-label">邮箱</label>
                    <div class="col-sm-7">
                        <input value="${admin.email}" type="email" class="form-control" name="email" id="inputEmail">
                    </div>
                </div>
                <div class="form-group two">
                    <label for="inputPassword" class="col-sm-2 control-label">密码</label>
                    <div class="col-sm-7">
                        <input value="${admin.password}" type="password" class="form-control" name="password" id="inputPassword">
                    </div>
                </div>
                <div class="form-group two">
                    <label for="inputNote" class="col-sm-2 control-label">备注</label>
                    <div class="col-sm-7">
                        <textarea class="form-control" rows="4" name="icon" id="inputNote">${admin.note}</textarea>
                    </div>
                </div>
                <div class="two status">
                    <label for="status"><span>是否启用</span></label>
                    <input type="radio" name="status" value="1" ${admin.status eq 1? "checked":""} >是
                    <input type="radio" name="status" id="status" value="0" ${admin.status eq 0? "checked":""}>否
                </div>
                <button style="margin-left: 500px;margin-top: 20px" class="btn btn-primary" type="submit">提交</button>
                <a href="admin" style="margin-left: 132px;margin-top: 20px" class="btn btn-danger">取消</a>
            </form>
        </div>
    </div>

</body>
</html>
